how to use logic